<?php require _APP_PATH_ . '/system/platform/resource/common_inc_header.tpl.php';?>

<span class="layui-breadcrumb">
  <a href="<?php echo url( _MODULE_NAME_ . '/admin.index/index');?>"><?php echo $GLOBALS['config']['module']['name'];?></a>
  <a><cite>应用配置</cite></a>
</span>

<div class="layui-tab layui-tab-brief">
  <ul class="layui-tab-title">
    <li class="layui-this"><a href="<?php echo url([ _MODULE_NAME_ ,'admin.config','index']);?>">应用</a></li>
  </ul>
</div>

<form class="layui-form" action="<?php echo url([ _MODULE_NAME_ ,'admin/config','config_save']);?>" method="post" style="max-width: 900px;margin: 40px auto;">

    <div class="layui-form-item">
        <label class="layui-form-label">站点名称：</label>
        <div class="layui-input-block">
            <input type="text" name="title" placeholder="请输入站点名称" class="layui-input" value="<?php echo $config['title'];?>"
                    lay-verType="tips" lay-verify="required" required/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">站点图片：</label>
        <div class="layui-input-block">
			<?php echo tpl_file_manager( [ 'logo_url', $config['logo_url'] ] ); ?>
			<br style="clear:both">上传图片尺寸视网站效果自定
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">meta关键字：</label>
        <div class="layui-input-block">
        <input type="text" name="meta_keywords" class="layui-input" value="<?php echo $config['meta_keywords'];?>" />
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">meta简介：</label>
        <div class="layui-input-block">
            <textarea name="meta_description" class="layui-textarea"><?php echo $config['meta_description'];?></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">版权信息：</label>
        <div class="layui-input-block">
            <textarea name="copyright" class="layui-textarea"><?php echo $config['copyright'];?></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">隐藏区：</label>
        <div class="layui-input-block">
            <textarea name="hidden_area" class="layui-textarea"><?php echo $config['hidden_area'];?></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">icp备案编号：</label>
        <div class="layui-input-block">
            <input type="text" name="icp" class="layui-input" value="<?php echo $config['icp'];?>" />
            <div style="color:#bbb">法规要求，链接必须指向工信部网站（https://beian.miit.gov.cn/）</div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" type="submit" lay-submit >&emsp;保存&emsp;</button>
        </div>
    </div>
</form>

<?php require _APP_PATH_ . '/system/platform/resource/common_inc_footer.tpl.php';?>

<style>
.layui-form-label{width: 170px;} /* 默认 width80 + padding 15 x 2  = 110px */
.layui-input-block{margin-left:200px; line-height: 36px;} /* 默认110px */
</style>